﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FlowManager.aspx.cs" Inherits="DuJianliang.ApplicationPlatform.Flow.FlowManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Expires" content="0"> 
    <meta http-equiv="Cache-Control" content="no-cache"> 
    <meta http-equiv="Pragma" content="no-cache">
    <title></title>
    <base target="_self" />
    <link rel="stylesheet" type="text/css" href="../Scripts/ExtJS/resources/css/ext-all.css" />
    <script type="text/javascript" src="../Scripts/ExtJS/ext-all.js"></script>
    <script type="text/javascript" src="../Scripts/flowmanager2.aspx.js"></script>
    <script type="text/javascript" language="javascript">
        function OpenFlowRejectStepSelect() {

            if (!Page_ClientValidate()) {
                return false;
            }
            var url = "/Flow/FlowRejectStepSelect.aspx?FlowID=<%=this.UrlParam_FlowID%>&StepID=<%=this.CurrentStepID%>"
            var features = "dialogHeight:500px;dialogWidth:650px;center;";
            var retValue = window.showModalDialog(encodeURI(url), null, features);

            if (retValue == "" || typeof (retValue) == "undefined") {
                return false;
            }
            else {
                document.getElementById('<%=hidRejectStepID.ClientID%>').value = retValue;
                return true;
            }
        }
    </script>
    <style type="text/css">
        .textBoxContent
        {
            padding-top: 2px;            
        }
        .divStyle
        {
            margin-left:5px; 
            margin-top:3px
        }
    </style>
</head>
<body>
<div id="divHeader">
<form id="form1" runat="server">
    <div class="divStyle">
        <asp:Button ID="btnCreate" runat="server" Text="发起流程" Width="80px" onclick="btnCreate_Click" />
        <asp:Button ID="btnAgree" runat="server" Text="提交" onclick="btnAgree_Click" Width="80px" />
        <asp:Button ID="btnReject" runat="server" Text="驳回" OnClientClick="return OpenFlowRejectStepSelect()" onclick="btnReject_Click" Width="80px" />
        <asp:Button ID="btnRevoke" runat="server" Text="撤回" Width="80px" 
            CausesValidation="False" onclick="btnRevoke_Click" />
        <asp:Button ID="btnInvalid" runat="server" Text="作废" onclick="btnInvalid_Click" Width="80px" />
    </div>
    <div class="divStyle">
        当前流程&nbsp;&nbsp;
        <asp:TextBox ID="txtFlowName" runat="server" Width="69.8%" Enabled="False" CssClass="textBoxContent"></asp:TextBox>    
    </div>   
    <div class="divStyle">
        当前步骤&nbsp;&nbsp;
        <asp:TextBox ID="txtStepName" runat="server" Width="69.8%" Enabled="False" CssClass="textBoxContent"></asp:TextBox>

    </div>   
    <div class="divStyle">
        流程主题&nbsp;&nbsp;
        <asp:TextBox ID="txtSubject" runat="server" Width="69.8%" Height="18px" Enabled="false" CssClass="textBoxContent"></asp:TextBox>&nbsp;&nbsp;
        <asp:RequiredFieldValidator ID="rfvSubject" runat="server"
                    ControlToValidate="txtSubject" ForeColor="Red" Font-Names="Verdana" 
                    Font-Size="12px">必须填写</asp:RequiredFieldValidator> 
    </div>   
    <div class="divStyle">
        审批意见&nbsp;&nbsp;
        <asp:TextBox ID="txtOpinion" runat="server" TextMode="MultiLine" Width="70%" Height="50px"></asp:TextBox>&nbsp;&nbsp;
    </div>
    <input type="hidden" id="hidRejectStepID" runat="server" />
    <input type="hidden" id="hidFormPath" runat="server" />
    <input type="hidden" id="hidFlowInstanceID" runat="server" />
    <input type="hidden" id="hidStepID" runat="server" />
    </form>
</div>
</body>
</html>
